<template>
  <div class="hide-search-btn">
    <el-row>
      <!-- <el-tooltip v-if="search" class="item" effect="dark" :content="showSearch ? '隐藏' : '显示全部搜索条件'" placement="top">
        <div class="display:flex:" @click="toggleSearch()">
            <span style="margin-right:4px;color:#3F85FE;font-size:14px;">{{ showSearch ? '隐藏' : '展开' }}</span>
            <i class="el-icon-arrow-up" style="color:#3F85FE;" v-if="showSearch"></i>
            <i class="el-icon-arrow-down" style="color:#3F85FE;" v-else></i>
        </div>
      </el-tooltip> -->

      <div class="display:flex:" @click="toggleSearch()">
          <span style="margin-right:4px;color:#3F85FE;font-size:14px;">{{ showSearch ? '隐藏' : '展开' }}</span>
          <i class="el-icon-arrow-up" style="color:#3F85FE;" v-if="showSearch"></i>
          <i class="el-icon-arrow-down" style="color:#3F85FE;" v-else></i>
      </div>

    </el-row>
  </div>
</template>
<script>
export default {
  name: 'RightToolbar',
  props: {
    showSearch: {
      type: Boolean,
      'default': true
    },
    columns: {
      type: Array,
      'default': () => []
    },
    search: {
      type: Boolean,
      'default': true
    },
    gutter: {
      type: Number,
      'default': 10
    }
  },
  data() {
    return {
      // 显隐数据
      value: [],
      // 弹出层标题
      title: '显示/隐藏'
    };
  },
  methods: {
    // 搜索
    toggleSearch() {
      this.$emit('update:showSearch', !this.showSearch);
    }
  }
};
</script>
<style lang="scss" scoped>
.hide-search-btn {
  display: inline-block;
  margin-right: 15px;
}
::v-deep .el-transfer__button {
  border-radius: 50%;
  padding: 12px;
  display: block;
  margin-left: 0px;
}
::v-deep .el-transfer__button:first-child {
  margin-bottom: 10px;
}
</style>
